package strategy;

import java.util.Scanner;

public class BookStoreClients {
    public static void main(String[] args) {
        String clientInfo;
        double bill;

        Scanner reader = new Scanner(System.in);
        clientInfo = reader.nextLine();
        bill = reader.nextDouble();

        OnlineBookStore store;
        switch(clientInfo){
            case "初级会员": store = new OnlineBookStore(new NormalClients()); break;
            case "中级会员": store = new OnlineBookStore(new ImortantClients());break;
            default: store = new OnlineBookStore(new VIPClients());
        }

        store.billCalculate(bill);

        BookStoreFactory factory = new BookStoreFactory(clientInfo);
        factory.onlineBookStore(bill);
    }
}
